import request from '@/utils/request'

// 查询质检项管理列表
export function listQualityInspection(query) {
  return request({
    url: '/qualityManagement/qualityInspection/list',
    method: 'get',
    params: query
  })
}

// 查询质检项管理详细
export function getQualityInspection(inspectionId) {
  return request({
    url: '/qualityManagement/qualityInspection/' + inspectionId,
    method: 'get'
  })
}

// 新增质检项管理
export function addQualityInspection(data) {
  return request({
    url: '/qualityManagement/qualityInspection',
    method: 'post',
    data: data
  })
}

// 修改质检项管理
export function updateQualityInspection(data) {
  return request({
    url: '/qualityManagement/qualityInspection',
    method: 'put',
    data: data
  })
}

// 删除质检项管理
export function delQualityInspection(inspectionId) {
  return request({
    url: '/qualityManagement/qualityInspection/' + inspectionId,
    method: 'delete'
  })
}


// 获取预警产品  /OutboundManagement/deliveryOperation//Warning
export function Warning(query) {
  return request({
    url: '/OutboundManagement/deliveryOperation/Warning',
    method: 'get',
    params: query
  })
}
